package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.PostBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.PostDetailIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class PostDetailModel extends RetrofitBaseModel implements PostDetailIface<PostBean> {
    LoginService loginService;
    Retrofit retrofit;
    public PostDetailModel(){
        retrofit = getRetrofit();
        loginService = getLoginService();
    }
    @Override
    public void getPostDetail(String post_id, LoginListener<PostBean> listener) {
        Call<PostBean> call = loginService.postdetail(post_id);
        callenqueue(call,listener);
    }
}
